/*
 * @Description: 
 * @Version: 2.0
 * @Author: cxc
 * @Date: 2022-03-29 23:49:09
 * @LastEditors: cxc
 * @LastEditTime: 2022-04-08 18:26:09
 */
import React from 'react'
import { Button } from 'antd'

export default function ComButton(props) {
  const { fs, height, type, btnName, icon, size, handleClick, BCcolor, id } = props
  return (
    <>
      <Button style={{ border: 0, fontSize: fs, backgroundColor: BCcolor, height: height }} type={type} icon={icon ? icon : ''} size={size} onClick={handleClick ? () => handleClick(id) : () => { }}>{btnName}</Button>
    </>
  )
}
